﻿
namespace Edu.Technion.CSE.OpenUnit4.CollectionsLib
{
    interface IListNode<T>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        T GetInfo();

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        Node<T> GetNext();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="newInfo"></param>
        void SetInfo(T newInfo);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="newNext"></param>
        void SetNext(Node<T> newNext);

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        string ToString();
    }
}
